package com.ym;


import net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@MapperScan("com.ym.*.dao")
@SpringBootApplication(scanBasePackages = {"cn.hutool.extra.spring", "com.ym"})
@EnableCaching
@EnableScheduling
@EnableTransactionManagement
@EnableAsync
@EnableSchedulerLock(defaultLockAtMostFor = "PT30S")
public class MedicalApiApplicaiton {

	public static void main(String[] args) {
		System.setProperty("es.set.netty.runtime.available.processors", "false");
		SpringApplication.run(MedicalApiApplicaiton.class);
	}
}
